
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="com.alibaba.druid.util.StringUtils" %>
<%@ page import="com.timeDeal.service.UserService" %>
<%--
  Created by IntelliJ IDEA.
  User: 叼爸爸
  Date: 2016/9/3
  Time: 21:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../inc/mytop.jsp"%>
<%
    UserService us = new UserService();
    String  ii = String.valueOf(id) ;
    System.out.println(id);
    System.out.println("22222222222222222222222222");
    String[] s2 =us.getDetail(Integer.valueOf(id),25);
    int tx =  loginuser==null?0:loginuser.getYonghuid() ;
    String[] s1= new String[]{"现实姓名","手机号码","性别","生日","通讯地址","年龄","邮箱","身份证号码","个人信条"};
    String[] s3= loginadmin!=null||Integer.valueOf(ii)==tx?new String[]{"是","是","是","是","是","是","是","是","是","是"}: us.getYunXun(Integer.valueOf(id));
%>
<form  id="bierenxinxi" name="bierenxinxi" >
    <input  class="id"  id="id" name="id" value="<%=ii%>"><%=ii%></input>
    <div class="form-group" >
        <table class="">
        <%
            for (int i = 0; i <9; i++) {
                if(StringUtils.equals("是",s3[i+1])){
                  %>

                   <tr <%if(i%2==1)%>style="background-color:#ecf6ee"<%%>>
                       <td>
                            <label>
                            <h4><%=s1[i]%></h4>
                            </label >
                      </td>
                       <td width="300px">&nbsp;&nbsp;&nbsp;&nbsp;</td>
                       <td >
                           <label >
                              <h5 ><%=s2[i]%></h5>
                           </label>
                       </td>
                       <td width="380px">&nbsp;&nbsp;&nbsp;&nbsp;</td>
                   </tr>

           <%
                }
            }
            %>
        </table>
        <%if(loginadmin!=null){%>
        <div align="center">
            <button type="button" id="jinggao"  name="jinggao" class="btn btn-info">警告一次</button>
        </div>
        <div align="center">
            <button type="button" id="jiangji"  class="btn btn-info">降低信用等级</button>
        </div>
        <%}else if(loginuser!=null){if(Integer.valueOf(id)==loginuser.getYonghuid()){%>
        <div class="col-md-offset-4 ">
            <button type="button" id="genggaiwode" class="btn btn-info">修改</button>
        </div>
       <% }else {%>
        <div class="col-md-offset-4 ">
            <button type="button" id="jubaote" class="btn btn-info">举报</button>
        </div>
        <%}}%>
    </div>

</form>
<%@include file="../inc/bottom.jsp"%>

